package com.atguigu.classroom.activity.service.impl;

import com.atguigu.classroom.activity.mapper.CouponUseMapper;
import com.atguigu.classroom.model.activity.CouponInfo;
import com.atguigu.classroom.activity.mapper.CouponInfoMapper;
import com.atguigu.classroom.activity.service.CouponInfoService;
import com.atguigu.classroom.vo.activity.CouponInfoVo;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 优惠券信息 服务实现类
 * </p>
 *
 * @author atguigu
 * @since 2022-07-17
 */
@Service
public class CouponInfoServiceImpl extends ServiceImpl<CouponInfoMapper, CouponInfo> implements CouponInfoService {
    @Autowired
    private CouponInfoMapper couponInfoMapper;
    @Override
    public Page<CouponInfo> getPage(int page, int limit) {
        Page<CouponInfo> couponInfoPage=new Page<>(page,limit);
        couponInfoMapper.selectPage(couponInfoPage,null);
        return couponInfoPage;
    }
}
